
public class Utility extends Block {
	private Player owner;   // the type of owner
	private int Price;
	private int Mortgage, rent;
	private String called;
	private String utilityDeed;
	private int UtilityGrp;
	private int NumberUtilGrp;
	private boolean IsMortgaged;
	
	public Utility(int blocknumber,int price_, int mort, int rent_ ,String called_, String uDeed,int utilGrp, int numUtil){
		super(blocknumber);
		this.owner = null;
		this.setPrice(price_);
		this.Mortgage = mort;
		this.rent=rent_;
		this.called=called_;
		this.setUtilityDeed(uDeed);
		this.UtilityGrp=utilGrp;
		this.setNumberUtilGrp(numUtil);
		this.setIsMortgaged(false);
	}
		public void setMortgage(int mortgage) {
			Mortgage = mortgage;
		}
		public int getMortgage() {
			return Mortgage;
		}
		public void setRent(int rent) {
			this.rent = rent;
		}
		public int getRent() {
			return rent;
		}
		public void setCalled(String called) {
			this.called = called;
		}
		public String getCalled() {
			return called;
		}
		public void setOwner(Player owner) {
			this.owner = owner;
		}
		public Player getOwner() {
			return owner;
		}
		public void setUtilityDeed(String utilityDeed) {
			this.utilityDeed = utilityDeed;
		}
		public String getUtilityDeed() {
			return utilityDeed;
		}
		public void setPrice(int price) {
			Price = price;
		}
		public int getPrice() {
			return Price;
		}
		public void setUtilityGrp(int utilityGrp) {
			UtilityGrp = utilityGrp;
		}
		public int getUtilityGrp() {
			return UtilityGrp;
		}
		public void setNumberUtilGrp(int numberUtilGrp) {
			NumberUtilGrp = numberUtilGrp;
		}
		public int getNumberUtilGrp() {
			return NumberUtilGrp;
		}
		public void setIsMortgaged(boolean isMortgaged) {
			IsMortgaged = isMortgaged;
		}
		public boolean isIsMortgaged() {
			return IsMortgaged;
		}
		

	}